<!DOCTYPE html>
<html class="x-admin-sm">
  <head>
    <meta charset="UTF-8">
    <title>欢迎页面-X-admin2.1</title>
    <meta name="renderer" content="webkit">
    <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
    <meta name="viewport" content="width=device-width,height=device-height,initial-scale=1.0, minimum-scale=1.0, maximum-scale=1.0, user-scalable=no">
    <link rel="stylesheet" href="__ADMIN__/css/font.css">
    <link rel="stylesheet" href="__ADMIN__/css/xadmin.css">
    <script type="text/javascript" src="__ADMIN__/js/jquery.min.js"></script>
    <script type="text/javascript" src="__ADMIN__/lib/layui/layui.js" charset="utf-8"></script>
    <script type="text/javascript" src="__ADMIN__/js/xadmin.js"></script>
    <script type="text/javascript" src="__ADMIN__/js/cookie.js"></script>
    <link rel="stylesheet" href="/static/admin/css/font.css">
    <link rel="stylesheet" href="/static/admin/css/font-awesome.min.css">
    <style>
        .layui-form-item .layui-form-label{
            width: 120px;
        }
        .layui-form-item .layui-textarea{
            width: 190px;
        }
        #phone-one-div {display: none}
        .layui-input-inline{width: 350px !important;}
        .layui-input-inline textarea{width:100% !important;}
    </style>
  </head>
  
  <body>
    <div class="x-body">
        <form class="layui-form">
          <input type="hidden" name="id" value="{$data.id}">
          <div class="layui-form-item">
              <label for="name" class="layui-form-label">
                  岗位名称
              </label>
              <div class="layui-input-inline">
                  <input type="text" id="name" name="name" value="{$data.name}" placeholder="" lay-verify="required" required="" autocomplete="off" class="layui-input">
              </div>
          </div>
          <div class="layui-form-item">
              <label for="yjyq" class="layui-form-label">
                  业绩要求
              </label>
              <div class="layui-input-inline">
                  <input type="text" id="yjyq" name="yjyq" value="{$data.yjyq}" placeholder="" lay-verify="required" required="" autocomplete="off" class="layui-input">
              </div>
          </div>
          <div class="layui-form-item">
              <label for="rcpy" class="layui-form-label">
                  人才培养
              </label>
              <div class="layui-input-inline">
                  <textarea placeholder="请输入内容" id="rcpy" name="rcpy" class="layui-textarea">{$data.rcpy}</textarea>
              </div>
          </div>
          <div class="layui-form-item">
              <label for="gjzb" class="layui-form-label">
                  关键指标
              </label>
              <div class="layui-input-inline">
                  <textarea placeholder="请输入内容" id="gjzb" name="gjzb" class="layui-textarea">{$data.gjzb}</textarea>
              </div>
          </div>
          <div class="layui-form-item">
              <label for="bjzb" class="layui-form-label">
                  保级指标
              </label>
              <div class="layui-input-inline">
                  <textarea placeholder="请输入内容" id="bjzb" name="bjzb" class="layui-textarea">{$data.bjzb}</textarea>
              </div>
          </div>
          <div class="layui-form-item">
              <label for="jjzb" class="layui-form-label">
                  降级
              </label>
              <div class="layui-input-inline">
                  <textarea placeholder="请输入内容" id="jjzb" name="jjzb" class="layui-textarea">{$data.jjzb}</textarea>
              </div>
          </div>
          <div class="layui-form-item">
              <label for="gwhf" class="layui-form-label">
                  岗位恢复
              </label>
              <div class="layui-input-inline">
                  <textarea placeholder="请输入内容" id="gwhf" name="gwhf" class="layui-textarea">{$data.gwhf}</textarea>
              </div>
          </div>
          <div class="layui-form-item">
              <label for="jcgz" class="layui-form-label">
                  基础工资
              </label>
              <div class="layui-input-inline">
                  <input type="text" id="jcgz" name="jcgz" value="{$data.jcgz}" placeholder="" lay-verify="required" required="" autocomplete="off" class="layui-input">
              </div>
          </div>
          <div class="layui-form-item">
              <label for="jxgz" class="layui-form-label">
                  绩效工资
              </label>
              <div class="layui-input-inline">
                  <input type="text" id="jxgz" name="jxgz" value="{$data.jxgz}" placeholder="" lay-verify="required" required="" autocomplete="off" class="layui-input">
              </div>
          </div>
          <div class="layui-form-item">
              <label for="qqj" class="layui-form-label">
                  全勤奖
              </label>
              <div class="layui-input-inline">
                  <input type="text" id="qqj" name="qqj" value="{$data.qqj}" placeholder="" lay-verify="required" required="" autocomplete="off" class="layui-input">
              </div>
          </div>
          <div class="layui-form-item">
              <label for="grtc" class="layui-form-label">
                  个人提成
              </label>
              <div class="layui-input-inline">
                  <input type="text" id="grtc" name="grtc" value="{$data.grtc}" placeholder="" lay-verify="required" required="" autocomplete="off" class="layui-input">
              </div>
          </div>
          <div class="layui-form-item">
              <label for="gltc" class="layui-form-label">
                  管理提成
              </label>
              <div class="layui-input-inline">
                  <input type="text" id="gltc" name="gltc" value="{$data.gltc}" placeholder="" lay-verify="required" required="" autocomplete="off" class="layui-input">
              </div>
          </div>
          <div class="layui-form-item">
              <label for="tdlrfh" class="layui-form-label">
                团队利润分红
              </label>
              <div class="layui-input-inline">
                  <input type="text" id="tdlrfh" name="tdlrfh" value="{$data.tdlrfh}" placeholder="" lay-verify="required" required="" autocomplete="off" class="layui-input">
              </div>
          </div>
          <div class="layui-form-item">
              <label for="bmlrfh" class="layui-form-label">
                  分子团队/部门利润分红
              </label>
              <div class="layui-input-inline">
                  <input type="text" id="bmlrfh" name="bmlrfh" value="{$data.bmlrfh}" placeholder="" lay-verify="required" required="" autocomplete="off" class="layui-input">
              </div>
          </div>

          <div class="layui-form-item">
              <label for="L_repass" class="layui-form-label">
              </label>
              <button type="button" class="layui-btn" lay-filter="add" lay-submit="">
                  确定
              </button>
          </div>
      </form>
    </div>

    <script>
        layui.use(['form','layer','laydate','upload'], function(){
          $ = layui.jquery;
          var form = layui.form
          ,layer = layui.layer
          ,laydate = layui.laydate
          ,upload = layui.upload;


          //年月选择器
            laydate.render({ 
              elem: '#start_date'
              //,type: 'month'
            });
            laydate.render({ 
              elem: '#end_date'
              //,type: 'month'
            });
          //监听提交
          form.on('submit(add)', function(data){
            $.ajax({
                type:'POST',
                dataType:'json',
                data:data.field,
                success:function(obj){
                    
                      layer.alert(obj.msg, {icon: obj.icon},function(){
                        // 获得frame索引
                        var index = parent.layer.getFrameIndex(window.name);
                        //关闭当前frame
                        parent.layer.close(index);
                        // 可以对父窗口进行刷新 
                        x_admin_father_reload();
                      });  
                }
            });
            return false;
          });
          
          
        });
    </script>
  </body>

</html>